<template>
    <div class="wingame">
    	<img class="close" src="../assets/img/butuisong@2x.png" @click.stop.self="close(momentType, momentId)"/>
      <a :href="Props.GAME_ID | gameDetailFilter">
      	<div class="wingame_con">
      		<div class="touxiang">
            <avatar :src="Props.USER_PHOTO" :href="Props.USER_CODE"/>
      			<!-- <img :src="Props.USER_PHOTO !== ''? Props.USER_PHOTO : `${require('@/assets/img/touxiangBG@2x.png')}`"/> -->
      		</div>
      		<div class="info">
      			 <div class="info_name">
        			 <span class="v_name">{{Props.NICK_NAME}}</span>
        			 <img class="v_logo" src="../assets/img/vip@2x.png" v-if="Props.USER_LEVEL!==null && Props.USER_LEVEL!==''"/>
      			 </div>
      			 <p class='info_con'>刚刚在 <span class="g_name">{{Props.GAME_NAME}}</span>获胜</p>
      			 <span class='go_other'>
      			 	 马上围观 >
      			 </span>
      		</div>
      	</div>
      </a>
      <slot></slot>
    </div>
</template>

<script>
import BottomBar from './common/BottomBar'
import MomentMixin from './MomentMixin'
import Avatar from './Avatar'
import { gameDetailFilter } from '../filters/userFilter'

export default {
  name: 'exchange',
  props: {
    Props: Object
  },
  filters: {
    gameDetailFilter
  },
  mixins: [MomentMixin],
  components: {
    Avatar,
    BottomBar
  },
  methods: {}
}
</script>

<style lang="less" scoped>
@import "./common/mixins.less";

.wingame {
  .moment;
  background: url(../assets/img/win@2x.png) no-repeat;
  background-color: #fff;
  background-size: 210px;
  position: relative;
  .label {
    position: absolute;
    left: -2px;
    top: 5px;
    width: 27px;
    height: 118px;
  }
  .close {
  	position: absolute;
  	right: 4px;
  	top: 0px;
  	width: 34px;
  	height: 24px;
  }
}
.wingame_con {
	height: 143px;
	width: 100%;
	padding: 38px 35px 0 41px;
	box-sizing: border-box;
	display: flex;
	flex: 1;
	text-align: left;
}
.touxiang {
	width: 58px;
	height: 58px;
	margin-right:17px;
	img{
		display: block;
		width: 58px;
	  	height: 58px;
	}
}
.info_con {
	.info_con_font;
  .ellipsis(2);
	color: #777777;
	margin-bottom: 10px;
	.g_name {
		color: #FD363B;
	}
}
.go_other {
	.go_other_font;
}
</style>
